﻿using System;
using DXTools.Core.CrmSdk;

namespace DXTools.Core.CrmSdk
{
    public partial class Label : IComparable
    {

        // Implement IComparable CompareTo method - provide default sort order.
        int IComparable.CompareTo(object obj)
        {
            return String.Compare((this.UserLocalizedLabel != null) ? this.UserLocalizedLabel.Label : null, ((Label)obj).UserLocalizedLabel != null ? ((Label)obj).UserLocalizedLabel.Label : null);

        }
    }

    public partial class AttributeRequiredLevelManagedProperty : IComparable
    {

        // Implement IComparable CompareTo method - provide default sort order.
        int IComparable.CompareTo(object obj)
        {
            return String.Compare((this != null) ? this.Value.ToString() : null, obj != null ? ((AttributeRequiredLevelManagedProperty)obj).Value.ToString() : null);

        }
    }

    public partial class BooleanManagedProperty : IComparable
    {

        // Implement IComparable CompareTo method - provide default sort order.
        int IComparable.CompareTo(object obj)
        {
            return String.Compare(this.Value.ToString(), ((BooleanManagedProperty)obj).Value.ToString());

        }
    }





}